package com.easy.dfcapi.web;

import com.easy.common.bean.Result;
import com.easy.core.web.Api20Controller;
import com.easy.dfcapi.res.ResponseUser;
import com.easy.dfcapi.service.ApiAdvertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
/**
 * 广告相关控制器
 */

@Controller
@RequestMapping(value = "${apiPath}/2.0/advert")
public class ApiAdvertController extends Api20Controller {


    @Autowired
    private ApiAdvertService advertService;


    /**
     * 商品详情
     * @param response
     * @param request
     * @return
     */
    @ResponseBody
    @RequestMapping(value = "ProductDetail", method = RequestMethod.POST)
    public Result ProductDetail(ResponseUser response, HttpServletRequest request) {
        return null;
        //try {
        //    if(!response.isValidator()){
        //        return response.getResult();
        //    }
        //    response.setIp(IPUtil.getIpAddress(request));
        //    return activityService.ProductDetail(response);
        //} catch (Exception e) {
        //    logger.error(e.toString());
        //    Result rt = new Result();
        //    rt.setStatus(EnumConfig.S_CODE.FAIL);
        //    return rt;
        //}
    }
}
